body {
    width: 640px;
    margin: 0 auto;
}

/* for control panel */

#panel {
    margin: 20px 0 50px 0;
}

.count {
    float: right;
}

.counter {
    margin: 10px 0 0 30px;
    width: 20px;
    height: 20px;
    padding: 10px;
    text-align: center;
    border-radius: 20px;
    -o-border-radius: 20px;
    -ms-border-radius: 20px;
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    background-color: #dd5862;
}

#counternew {
    background-color: yellow;
}

label {
    margin: 10px;
    font-weight: bold;
}

#arm {
    margin: 10px 0;
}

#arm label {
    margin-right: 28px;
}

#arm select {
    padding: 5px;
}

input {
    padding: 5px;
}

button {
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
    -o-border-radius: 10px;
    -ms-border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    background-color: #dd5862;
}

button:focus {
    outline: none;
}

/* for display panel */

#container {
    position: relative;
    width: 400px;
    height: 400px;
    transform-origin: 200px 200px;
    margin: 25px;
}

table {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid black;
    box-sizing: content-box;
    border-radius: 10px;
    -o-border-radius: 10px;
    -ms-border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    background-color: #dd5862;
    z-index: 1000;
}

#top {
    left: 150px;
}

#bottom {
    left: 150px;
    top: 300px;
}

#left {
    top: 150px;
}

#right {
    top: 150px;
    left: 300px;
}

#container td {
    width: 20px;
    height: 20px;
    border: 2px solid black;
    box-sizing: border-box;
    border-radius: 10px;
    -o-border-radius: 10px;
    -ms-border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    background-color: white;
}

#horizontal {
    position: absolute;
    height: 10px;
    width: 250px;
    left: 80px;
    top: 195px;
    background-color: #dd5862;
}

#vertical {
    position: absolute;
    height: 250px;
    width: 10px;
    left: 195px;
    top: 80px;
    background-color: #dd5862;
}